const config = {
  // 基础 URL
  BASE_URL: 'https://api.cstwy.top/',
  
  // API 路径
  API: {
    SEARCH_MUSHROOM: '/search',
    CLASSIFY: '/predict',
    NEWS_LIST: '/news/list',
    NEWS_DETAIL: '/news/detail'
  }
};

// 生成完整的 API URL
const getApiUrl = (path) => {
  return `${config.BASE_URL}${path}`;
};

module.exports = {
  config,
  getApiUrl
}; 